#PlayerHasBow Counter
execute as @a[gamemode=!spectator] store result score @s PlayerHasBow if data entity @s Inventory[{id:"minecraft:bow",components:{"minecraft:custom_data":{type:"bow"}}}]